﻿#region using
using System;
using Linq2Crm.ObjectModel.Attributes;
using SLApp_Test.Model;
using SilverCrmSoap.CrmSdk;


#endregion

namespace SLApp_Test
{
   [System.Diagnostics.DebuggerDisplay("StatusCode: {StatusCode}; State: {StateCode}; Start: {Start}; End: {Stop}; Name: {Name}")]
   [CrmEntityMapping("promx_project", "promx_projectname", "promx_projectid")]
   public class Project : BaseEntity
   {
      [CrmFieldMapping("promx_baseprojectlookup")]
      public EntityReference ParentProject { get; set; }

      [CrmFieldMapping("promx_estimatehours")]
      public double? EstimatedEffort { get; set; }

      [CrmFieldMapping("promx_start")]
      public DateTime? Start { get; set; }

      [CrmFieldMapping("promx_stop")]
      public DateTime? Stop { get; set; }

      [CrmFieldMapping("promx_projectorganizerlookup")]
      public EntityReference ProjectManager { get; set; }

      [CrmFieldMapping("promx_defaultactivityrecordtypeid")]
      public EntityReference DefaultBookingType { get; set; }

      [CrmFieldMapping("promx_accountlookup")]
      public EntityReference Customer { get; set; }

      [CrmFieldMapping("transactioncurrencyid")]
      public EntityReference Currency { get; set; }

      [CrmFieldMapping("promx_type")]
      public bookingtype BookingType { get; set; }
   }
}